<template>
	<navigatorComp title="推送设置" bgcColor="#121512" fontColor="#fff"></navigatorComp>

	<view class="push_setList">
		<view class="push_setItem">
			<view>
				<view class="push_setItem_title">新消息提醒</view>
				<view class="push_setItem_tip">关闭后，将不会向您推送所有消息通知</view>
			</view>
			<up-switch
				v-model="isNewRemind"
				activeColor="rgb(243,224,187)"
				size="23"
				@change="changeNewRemind"
			></up-switch>
		</view>
		<view class="push_setItem">
			<view>
				<view class="push_setItem_title">夜间消息免打扰</view>
				<view class="push_setItem_tip">开启后，将自动屏蔽23:00-7:00的所有推送</view>
			</view>
			<up-switch
				v-model="isNightRemind"
				activeColor="rgb(243,224,187)"
				size="23"
				@change="changeNightRemind"
			></up-switch>
		</view>
	</view>
</template>

<script setup>
import { onLoad } from '@dcloudio/uni-app';
import { ref, reactive } from 'vue';
import navigatorComp from '/components/navigator/index.vue';

const isNewRemind = ref(true);
const isNightRemind = ref(false);

onLoad(() => {});
</script>

<style lang="scss">
page {
	background-color: #121512;
	/* #ifdef H5 */
	padding-top: 0;
	/* #endif */
}

.push_setList {
	margin: 24rpx 32rpx;

	.push_setItem {
		background: #292b2a;
		border-radius: 8rpx;
		padding: 32rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 24rpx;

		.push_setItem_title {
			font-weight: 400;
			font-size: 32rpx;
			color: #ffffff;
			line-height: 38rpx;
			margin-bottom: 12rpx;
		}

		.push_setItem_tip {
			font-weight: 400;
			font-size: 24rpx;
			color: #ffffff;
			line-height: 28rpx;
		}
	}
}
</style>
